import { http } from '/@/utils/http';
import type {
  HostpotPageListParams,
  HostpotPageListModel,
  HostpotListModel,
  HostpotListParams,
  HostpotInfoMobel,
} from './model/pinsModel';

export function queryHostPageList(params: HostpotPageListParams) {
  return http.post<HostpotPageListModel>({
    url: '/api/app/hotspot/hotspot/page',
    params,
  });
}

export function queryHostList(params: HostpotListParams) {
  return http.post<HostpotListModel>({
    url: '/api/app/hotspot/hotspot/list',
    params,
  });
}

export function queryHostInfo(id: number) {
  return http.get<HostpotInfoMobel>({
    url: '/api/app/hotspot/hotspot/info',
    params: {
      id,
    },
  });
}
